package com.example.demo.vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import lombok.Data;

import java.util.List;

@Data
@ContentRowHeight(100) // 设置行高
public class CensusUserExportVo {
    @ExcelProperty("ID")
    @ColumnWidth(10)
    private Integer id;

    @ExcelProperty("图片ID")
    @ColumnWidth(15)
    private String imageIds; // 保持原始字符串格式（如 "1705,1703,1704"）

    @ExcelProperty("客户姓名")
    @ColumnWidth(20)
    private String custName;

    @ExcelProperty("客户编号")
    @ColumnWidth(15)
    private String custNo;

    @ExcelProperty("管理机构名称")
    @ColumnWidth(25)
    private String mgtOrgName;

    @ExcelProperty("地址")
    @ColumnWidth(30)
    private String address;

    @ExcelIgnore
    private List<String> imageBase64List; // 存储所有关联图片的Base64字符串

    @ExcelProperty(value = "图片预览") // 添加转换器
    @ColumnWidth(50)
    private List<byte[]> imageDataList;
}